export const addConfig = {
  confirmButton: {
    text: '保存'
  },
  cancelButton: {
    text: '取消'
  },
  formConfig: {
    inline: true,
    size: 'medium'
  },
  formItems: [
    {
      prop: 'nickname',
      label: '用户',
      type: 'select',
      optons: []
    },
    {
      prop: 'noType',
      label: '类型',
      type: 'select',
      optons: [
        {
          label: '歌单',
          value: 'GD'
        },
        // {
        //   label: '歌曲',
        //   value: 'GQ'
        // },
        {
          label: '歌手',
          value: 'GS'
        }
      ]
    },
    {
      prop: 'modeNo',
      label: '歌单',
      type: 'select',
      optons: []
    },

    {
      prop: 'content',
      label: '评论',
      wrap: true,
      type: 'textarea',
      config: {
        cols: '50',
        rows: '4'
      }
    }
  ]
}
export const searchConfig = {
  confirmButton: {
    text: '搜索'
  },
  cancelButton: {
    text: '重置'
  },
  formConfig: {
    isSearch: true,
    inline: true
  },
  formItems: [
    {
      prop: 'nickname',
      label: '用户'
    },
    {
      prop: 'content',
      label: '评论'
    }

  ]
}
export const tableConfig = {
  search: true,
  headerBtn: [
    {
      type: 'add',
      label: '新增'
      // svg:''
    }
  ],
  tableColumns: [
    {
      prop: 'nickname',
      label: '用户',
      func({ userinfor }) {
        return userinfor.nickname
      }
    },
    {
      prop: 'content',
      label: '评论'
    },
    {
      prop: 'likeNum',
      label: '点赞量'
    },
    {
      prop: 'commentTime',
      label: '评论时间',
      isDate: 'datetime'
    },
    {
      prop: 'edit',
      label: '操作',
      editType: true
    }
  ],
  editType: [
    {
      type: 'delete',
      label: '删除'
    }
  ]
}
